package com.onlinemeal.meal.po;

import java.io.Serializable;
import java.util.HashSet;
import java.util.Set;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.OneToMany;
@Entity
public class Style implements Serializable{

	private static final long serialVersionUID = 5L;
	@Id
	private String style_id;
	@Column(length=20)
	private String style_name;
	@OneToMany(fetch=FetchType.LAZY,targetEntity=Meal.class)
	@JoinColumn(name="style_meal_id",nullable=false)
	private Set<Meal> meal = new HashSet<Meal>();
	
	public String getStyle_id() {
		return style_id;
	}
	public void setStyle_id(String style_id) {
		this.style_id = style_id;
	}
	public String getStyle_name() {
		return style_name;
	}
	public void setStyle_name(String style_name) {
		this.style_name = style_name;
	}
	public Set<Meal> getMeal() {
		return meal;
	}
	public void setMeal(Set<Meal> meal) {
		this.meal = meal;
	}
	
}